<?php

namespace App\HttpController\Api;

use App\Logic\Member\MemberScoreService;

/**
 * Class Score
 * 积分
 */
class Score extends BaseController {


    /**积分流水
     */
    public function index()
    {
        $service = new MemberScoreService();
        $result = $service->getLists($this->request());
        return $this->writeJsonByOutput($result);
    }

    /**积分流水-按日期分组
     */
    public function group()
    {
        $service = new MemberScoreService();
        $result = $service->getGroupLists($this->request());
        return $this->writeJsonByOutput($result);
    }
    /**积分流水字典
     */
    public function dict()
    {
        $service = new MemberScoreService();
        $result = $service->getDict($this->request());
        return $this->writeJsonByOutput($result);
    }

}
